DIR=$( dirname "$(readlink -f  ${BASH_SOURCE[0]})" )
PARENTPATH=$(dirname ${DIR})
ROOTPATH=$(dirname ${PARENTPATH})
source ${ROOTPATH}/tools.sh
sh ${PARENTPATH}/valid_docker_images.sh it-tools
if [ $? != "2" ]; then
   sudo docker pull corentinth/it-tools:latest
fi
docker ps -a | grep it-tools
if [[ $? -eq 1 ]]
then
  docker run -d --name it-tools --restart unless-stopped -p 40116:80 corentinth/it-tools:latest
else
  docker restart it-tools
fi
